<link href="__PUBLIC__/Home/css/bootstrap.css" rel="stylesheet" />
<div class="modal-dialog">
    <div class="modal-content" style="width:100%">
        <div class="modal-header">
    <div class="modal-header">
    </div>
    <div class="modal-body">
        <form method="post" action="__SELF__" class="form-horizontal">
            <input name="offset" value="" style="display:none">
            <div class="form-group">
                <label class="col-lg-2 control-label" for="new_card_no">会员卡号</label>
                <div class="col-lg-3">
                    <input type="tel" class="form-control input-sm" id="new_card_no" name="kahao" value="{:generateCode()}" autofocus="autofocus" required placeholder="必填"><div id="duplicate"></div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-lg-2 control-label">会员姓名</label>
                <div class="col-lg-3">
                    <input style="display:none" name="cust_id" id="sellCardCustId">
                    <input type="text" class="form-control input-sm" name="username" value="{$userData['username']}" id="sellCardCustName">
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-2 control-label">手机号码</label>
                <div class="col-lg-3">
                    <input type="tel" class="form-control input-sm" name="telphone" value="{:$userData['telphone']}" id="sellCardCustMobile" readonly=""><div id="mobile_duplicate">
                </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-2 control-label">介绍人</label>
                <div class="col-lg-3">
                    <input type="tel" class="form-control" name="intro_man" id="sellCardIntroducerId" autocomplete="off">
                </div>
            </div>

            <div class="form-group">
                <label class="col-lg-2 control-label">选择卡项</label>
                <div class="col-lg-3">
                    {:buildSelect('card','card_id','id','name')}
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-2 control-label">有效期限</label>
                <div class="col-lg-3">
                    <input type="text" class="form-control input-sm" id="card_term" name="card_term" style="width:15em;display:inline">&nbsp;天
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-2 control-label">有效次数</label>
                <div class="col-lg-3">
                    <input type="text" class="form-control input-sm" id="card_times" name="card_times" style="width:15em;display:inline">&nbsp;次
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-2 control-label">储值金额</label>
                <div class="col-lg-3">
                    <input type="text" class="form-control input-sm" id="card_saving" name="member_account" style="width:15em;display:inline">&nbsp;
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-2 control-label">折扣率</label>
                <div class="col-lg-3">
                    <input type="text" class="form-control input-sm" id="card_discount" name="member_zk" style="width:15em;display:inline">&nbsp;
                </div>
            </div>
            <div class="form-group" id="sellardShouldPay">
                <label class="col-lg-2 control-label">应收金额</label>
                <div class="col-lg-3">
                    <input type="tel" class="form-control input-sm" id="card_price" name="pay_account" style="width:15em;display:inline">&nbsp;元
                </div>
                <div class="col-lg-2" style="padding-left:0;padding-right:0">
                    <input type="radio" id="sellCardPayRadio" name="sellCardPayRadio" style="margin-left:0" value="">分期缴费
                </div>
            </div>
            <div class="form-group" id="payed">
                <label class="col-lg-2 control-label">实收金额</label>
                <div class="col-lg-3">
                    <input type="tel" class="form-control input-sm" id="" name="payed" style="width:15em;display:inline">&nbsp;元
                </div>
            </div>
            <div class="form-group" id="">
                <label class="col-lg-2 control-label">欠款金额</label>
                <div class="col-lg-3">
                    <input type="tel" class="form-control input-sm" id="pay_last" name="pay_last" style="width:15em;display:inline">&nbsp;元
                </div>
            </div>

            <div class="form-group">
                <label class="col-lg-2 control-label">购卡积分</label>
                <div class="col-lg-3">
                    <input type="tel" class="form-control input-sm" id="card_points" name="jifen" value="0" style="width:15em;display:inline">
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-2 control-label">支付方式</label>
                <div class="col-lg-4">
                    <select name="pay_way" class="form-control input-sm" id="sellCardPayWay">
                        <option value="cash">现金</option>
                        <option value="bank">银行卡</option>
                        <option value="alipay">支付宝</option>
                        <option value="wxpay">微信支付</option>
                        <option value="saving">储值</option>
                        <option value="points">积分</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-lg-2 control-label">销售备注</label>
                <div class="col-lg-3">
                    <textarea name="sellNote" id="sellNote" class="form-control input-sm" rows="2">				</textarea>
                </div>
            </div>
            <div class="modal-footer">
                <button type="submit" class="btn btn-default">提交</button>
            </div>
        </form></div>
</div>
    </div>
</div>
<script type="text/javascript">
    $("#sellCardPayRadio").click(function () {
        console.log(111);
    });
</script>